<?php
if (!defined('IN_MEDIA')) die("Hack");
function players($url,$type,$width,$height){
    global $web_link;
	$url = get_link_total($url);
		if ($type==3)
		   $player = "<OBJECT type=\"application/x-oleobject\" CLASSID=\"CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6\" codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\" height=\"455\" width=\"650\"><param name=\"url\" value=\"$url\"><param name=\"stretchToFit\" value=\"true\"><PARAM name=\"EnableContextMenu\" value=\"0\"><param NAME=\"volume\" VALUE=\"100\"><EMBED type=\"application/x-mplayer2\" quality=\"high\" pluginspage=\"http://www.microsoft.com/Windows/MediaPlayer/\" src=\"$url\" height=\"455\" width=\"650\" AutoStart=\"1\" EnableContextMenu=\"0\" Mute=\"0\" volume=\"100\" stretchToFit=\"true\" ShowStatusBar=\"1\"></OBJECT>";
		elseif ($type==1 || $type==31 || $type==5) 
			$player = "<embed name=\"flashplayer\" src=\"player.swf\" flashvars=\"file=$url&pathlateral=true&type=video&\" transparent=\"wmode\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowScriptAccess=\"always\" height=\"455\" width=\"650\" />";
		elseif ($type==19 || $type==16 || $type==18 || $type==26 || $type==29 || $type==35 || $type==38 || $type==40)
			$player = "<embed name=\"flashplayer\" src=\"gackiem/player.swf\" flashvars=\"plugins=gackiem/plugins/proxy.swf&proxy.link=$url&skin=lulu.zip&lightcolor=66CCCC&autostart=true&bufferlength=10&volume=100\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"650\" height=\"455\">";
		elseif ($type==25)
			$player = "<embed name=\"flashplayer\" src=\"gackiem/player.swf\" flashvars=\"plugins=gackiem/plugins/proxy.swf&proxy.link=$url&skin=lulu.zip&lightcolor=66CCCC&autostart=true&bufferlength=10&volume=100\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"650\" height=\"455\"><br><br><center>Chú ý: Server chỉ load mỗi lần 1 tập.</center>";
		elseif ($type==4)
			$player = "<embed src=\"$url&amp;feature\" flashvars=\"version=3&amp;feature=player_embedded&amp;autoplay=1&amp;hd=1&amp;fs=1\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"650\" height=\"455\"></embed></object>";
		elseif ($type==11)
			$player = "<embed name=\"flashplayer\" src=\"gackiem/player.swf\" flashvars=\"plugins=gackiem/gkplugins_clipvn/plugins/proxy.swf&proxy.link=$url&skin=lulu.zip&lightcolor=66CCCC&autostart=true&bufferlength=10&volume=100\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"650\" height=\"455\">";
		elseif ($type==12)
			$player = "<embed name=\"flashplayer\" src=\"$url.swf\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"650\" height=\"455\">";
		elseif ($type==57)
			$player = "<embed name=\"flashplayer\" src=\"gackiem/player.swf\" flashvars=\"plugins=gackiem/gkplugins_zingvn/plugins/proxy.swf&proxy.link=$url&skin=lulu.zip&lightcolor=66CCCC&autostart=true&bufferlength=10&volume=100\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" height=\"455\" width=\"650\">";
		elseif ($type==33)
			$player = "<embed name=\"flashplayer\" src=\"$url\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"650\" height=\"455\">";
		elseif ($type==28)
			$player = "<embed name=\"flashplayer\" src=\"gackiem/player.swf\" flashvars=\"plugins=gackiem/gkplugins_youtube/plugins/proxy.swf&proxy.link=$url&skin=lulu.zip&lightcolor=66CCCC&autostart=true&bufferlength=10&volume=100\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"650\" height=\"455\">";
		elseif ($type==37)
			$player = "<embed name=\"flashplayer\" src=\"http://gk.phimanhdao.com/player.swf\" flashvars=\"plugins=http://gk.phimanhdao.com/gkplugins_twitvid/plugins/proxy.swf&proxy.link=$url&skin=http://phimanhdao.com/lulu.zip&lightcolor=66CCCC&autostart=true&bufferlength=10&volume=100\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"650\" height=\"455\">";
		elseif ($type==23)
			$player = "<embed name=\"flashplayer\" src=\"http://gk.phimanhdao.com/player.swf\" flashvars=\"plugins=http://gk.phimanhdao.com/gkplugins_sendspace/plugins/proxy.swf&proxy.link=$url&skin=http://phimanhdao.com/lulu.zip&lightcolor=66CCCC&autostart=true&bufferlength=10&volume=100\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"650\" height=\"455\">";
		elseif ($type==41)
			$player = "<embed name=\"flashplayer\" src=\"gackiem/player.swf\" flashvars=\"plugins=gackiem/gkplugins_picasaweb/plugins/proxy.swf&proxy.link=$url&skin=lulu.zip&lightcolor=66CCCC&autostart=true&bufferlength=10&volume=100\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" height=\"455\" width=\"650\">";
		elseif ($type==42)
			$player = "<embed name=\"flashplayer\" src=\"http://gk.phimanhdao.com/player.swf\" flashvars=\"plugins=http://gk.phimanhdao.com/gkplugins_hulkshare/plugins/proxy.swf&proxy.link=$url&skin=http://phimanhdao.com/lulu.zip&lightcolor=66CCCC&autostart=true&bufferlength=10&volume=100\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"650\" height=\"455\">";
		elseif ($type==43)
			$player = "<embed name=\"flashplayer\" src=\"gackiem/player.swf\" flashvars=\"plugins=gackiem/gkplugins_picasaweb/plugins/proxy.swf&proxy.link=$url&skin=lulu.zip&lightcolor=66CCCC&autostart=true&bufferlength=10&volume=100\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" height=\"455\" width=\"650\">";
		elseif ($type==44)
			$player = "<embed name=\"flashplayer\" src=\"http://gk.phimanhdao.com/player.swf\" flashvars=\"plugins=http://gk.phimanhdao.com/gkplugins_divxstage/plugins/proxy.swf&proxy.link=$url&skin=http://phimanhdao.com/lulu.zip&lightcolor=66CCCC&autostart=true&bufferlength=10&volume=100\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"650\" height=\"455\">";
		elseif ($type==46)
			$player = "<embed name=\"flashplayer\" src=\"http://gk.phimanhdao.com/player.swf\" flashvars=\"plugins=http://gk.phimanhdao.com/gkplugins_banbe/plugins/proxy.swf&proxy.link=$url&skin=http://phimanhdao.com/lulu.zip&lightcolor=66CCCC&autostart=true&bufferlength=10&volume=100\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"650\" height=\"455\">";
		elseif ($type==47)
			$player = "<embed name=\"flashplayer\" src=\"http://gk.phimanhdao.com/player.swf\" flashvars=\"plugins=http://gk.phimanhdao.com/gkplugins_glumbo/plugins/proxy.swf&proxy.link=$url&skin=http://phimanhdao.com/lulu.zip&lightcolor=66CCCC&autostart=true&bufferlength=10&volume=100\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"650\" height=\"455\">";
		elseif ($type==48)
			$player = "<embed name=\"flashplayer\" src=\"http://gk.phimanhdao.com/player.swf\" flashvars=\"plugins=http://gk.phimanhdao.com/gkplugins_sharefiles4u/plugins/proxy.swf&proxy.link=$url&skin=http://phimanhdao.com/lulu.zip&lightcolor=66CCCC&autostart=true&bufferlength=10&volume=100\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"650\" height=\"455\">";
		elseif ($type==49)
			$player = "<embed name=\"flashplayer\" src=\"http://gk.phimanhdao.com/player.swf\" flashvars=\"plugins=http://gk.phimanhdao.com/gkplugins_govn/plugins/proxy.swf&proxy.link=$url&skin=http://phimanhdao.com/lulu.zip&lightcolor=66CCCC&autostart=true&bufferlength=10&volume=100\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"650\" height=\"455\">";
		elseif ($type==50)
			$player = "<object id=\"flashplayer\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"$width\" height=\"$height\">
	<param name=\"movie\" value=\"plugins/player.swf\" />
	<param name=\"allowFullScreen\" value=\"true\" />
	<param name=\"allowScriptAccess\" value=\"always\" />
	<param name=\"FlashVars\" value=\"plugins=captions,plugins/proxy.swf&proxy.link=$url&logo.file=http://phimanhdao.com/images/logo.png&logo.hide=false&logo.position=top-right&logo.margin=8\" />
	<embed name=\"flashplayer\" src=\"plugins/player.swf\" FlashVars=\"plugins=captions,plugins/proxy.swf&proxy.link=$url&logo.file=http://phimanhdao.com/images/logo.png&logo.hide=false&logo.position=top-right&logo.margin=8\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowScriptAccess=\"always\" width=\"$width\" height=\"$height\" />
	</object>";
		elseif ($type==51)
			$player = "<embed name=\"flashplayer\" src=\"http://gk.phimanhdao.com/player.swf\" flashvars=\"plugins=http://gk.phimanhdao.com/gkplugins_modovideo/plugins/proxy.swf&proxy.link=$url&skin=http://phimanhdao.com/lulu.zip&lightcolor=66CCCC&autostart=true&bufferlength=10&volume=100\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"650\" height=\"455\">";
		elseif ($type==52)
			$player = "<embed name=\"flashplayer\" src=\"http://gk.pphimanhdao.com/player.swf\" flashvars=\"plugins=http://gk.phimanhdao.com/gkplugins_zalaa/plugins/proxy.swf&proxy.link=$url&skin=http://phimanhdao.com/lulu.zip&lightcolor=66CCCC&autostart=true&bufferlength=10&volume=100\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" height=\"455\" width=\"650\">";
		elseif ($type==53)
			$player = "<embed name=\"flashplayer\" src=\"http://gk.phimanhdao.com/player.swf\" flashvars=\"plugins=http://gk.phimanhdao.com/gkplugins_openfileru/plugins/proxy.swf&proxy.link=$url&skin=http://phimanhdao.com/lulu.zip&lightcolor=66CCCC&autostart=true&bufferlength=10&volume=100\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" height=\"455\" width=\"650\">";
		elseif ($type==55)
			$player = "<embed name=\"flashplayer\" src=\"http://gk.phimanhdao.com/player.swf\" flashvars=\"plugins=http://gk.phimanhdao.com/gkplugins_vivo/plugins/proxy.swf&proxy.link=$url&skin=http://phimanhdao.com/lulu.zip&lightcolor=66CCCC&autostart=true&bufferlength=10&volume=100\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" height=\"455\" width=\"650\">";
		elseif ($type==56)
		$player = "<embed name=\"flashplayer\" src=\"gackiem/player.swf\" flashvars=\"plugins=gackiem/gkplugins_zing/plugins/proxy.swf&proxy.link=$url&skin=lulu.zip&lightcolor=66CCCC&autostart=true&bufferlength=10&volume=100\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" height=\"455\" width=\"650\">";
		elseif ($type==34)
			$player = "<embed type=\"application/x-shockwave-flash\" src=\"http://player.longtailvideo.com/player.swf\" style=\"\" id=\"mpl\" name=\"mpl\" bgcolor=\"#FFF\" quality=\"high\" allowscriptaccess=\"always\" wmode=\"transparent\" allowfullscreen=\"true\" flashvars=\"playlistfile=$url&feature&skin=http%3A%2F%2Fwww.longtailvideo.com%2Ffiles%2Fskins%2Fnewtubedark%2F5%2Fnewtubedark.zip&plugins=hd-1h&hd.pluginmode=FLASH&hd.state=true&autostart=true&repeat=always\" height=\"455\" width=\"650\">";
		elseif ($type==15)
			$player = "<embed name=\"flashplayer\" src=\"gackiem/player.swf\" flashvars=\"plugins=gackiem/gkplugins_seeon/plugins/proxy.swf&proxy.link=$url&skin=lulu.zip&lightcolor=66CCCC&autostart=true&bufferlength=10&volume=100\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" height=\"455\" width=\"650\">";
		elseif ($type==10)
			$player = "<embed name=\"flashplayer\" src=\"gackiem/player.swf\" flashvars=\"plugins=gackiem/gkplugins_zing/plugins/proxy.swf&proxy.link=$url&skin=lulu.zip&lightcolor=66CCCC&autostart=true&bufferlength=10&volume=100\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" height=\"455\" width=\"650\">";
		elseif ($type==45)
			$player = "<embed type=\"application/x-shockwave-flash\" src=\"http://player.ooyala.com/player.swf\" style=\"\" id=\"mpl\" name=\"mpl\" bgcolor=\"#FFF\" quality=\"high\" allowscriptaccess=\"always\" wmode=\"transparent\" allowfullscreen=\"true\" flashvars=\"embedCode=$url&version=2\" height=\"455\" width=\"650\">";
		elseif ($type==32 || $type==8) 
			$player = "<object data=\"http://megafun.vn/common/v3/player/player.swf\" name=\"tom\" id=\"tom\" type=\"application/x-shockwave-flash\" height=\"455\" width=\"650\"><param value=\"true\" name=\"allowfullscreen\"><param value=\"always\" name=\"allowscriptaccess\"><param value=\"autostart=true&config=http://megafun.vn/common/v3/player/phim.xml&file=$url&bts=vs.phim&type=&streamer=http://s21.ctl.vsolutions.vn/ctl/video/\" name=\"flashvars\"></object>";
		//elseif ($type==10)
		//	$player = "<embed type=\"application/x-shockwave-flash\" src=\"player.swf?logo.file=http://phimanhdao.com/images/logo-trans.png&logo.hide=false&logo.position=top-right&logo.margin=10&skin=".$web_link."/video.swf\" flashvars=\"plugins=gkplugins_zing/plugins/proxy.swf&proxy.link=$url\" allowscriptaccess=\"always\" allowfullscreen=\"true\" height=\"455\" width=\"650\">";
		elseif ($type==24)
			$player = "<embed type=\"application/x-shockwave-flash\" src=\"http://123phim.net/skin/mediaplayer.swf\" style=\"\" id=\"mpl\" name=\"mpl\" bgcolor=\"#FFF\" quality=\"high\" allowscriptaccess=\"always\" allowfullscreen=\"true\" flashvars=\"pathlateral=true&type=video&file=$url&logo=images/logo-trans.png&logo.hide=false&logo.position=top-left&logo.margin=10\" height=\"455\" width=\"650\">";
		elseif ($type==30 || $type==17 || $type==36)
			$player = "<embed allownetworking=\"internal\" allowscriptaccess=\"never\" src=\"$url\" quality=\"high\" bgcolor=\"#ffffff\" wmode=\"transparent\" allowfullscreen=\"true\" type=\"application/x-shockwave-flash\" width=\"950\" height=\"600\"><br><br><center>Nếu Server CyWorld không load được phim các bạn Nhấn <b>Ctrl + F5</b> để tải lại.<br>Do Server tốc độ load phim không ổn định lúc nhanh lúc chậm mong các bạn thông cảm !</center>";
		//elseif ($type==37)
		//	$player = "<iframe title=\"Twitvid video player\" class=\"twitvid-player\" type=\"text/html\" src=\"$url&autoplay=1\" width=\"650\" frameborder=\"0\" height=\"455\"></iframe>";
		elseif ($type==22)
			$player = "<embed src=\"grab/player.swf\" Flashvars=\"plugins=grab/shared/proxy.swf&proxy.link=4sharedid-$url&autostart=true&type=video&pathlateral=true&skin=lulu.zip\" allowfullscreen=\"true\" allowscriptaccess=\"always\" height=\"455\" width=\"650\">";
		elseif ($type==21)
			$player = "<embed src=\"grab/player.swf\" Flashvars=\"plugins=grab/shared/proxy.swf&proxy.link=2sharedid-$url&autostart=true&type=video&pathlateral=true&skin=lulu.zip\" allowfullscreen=\"true\" allowscriptaccess=\"always\" height=\"455\" width=\"650\">";
		elseif ($type==6)
			$player = "<object id=\"flashplayer\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-446003540000\" height=\"455\" width=\"650\">
<param name=\"movie\" value=\"http://www.static.megavideo.com/mv_player.swf\" />
<param name=\"allowFullScreen\" value=\"true\" />
<param name=\"allowScriptAccess\" value=\"always\" />
<param name=\"transparent\" value=\"#FFFFFF\" />
<embed name=\"flashplayer\" src=\"$url\" transparent=\"wmode\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowScriptAccess=\"always\" height=\"455\" width=\"650\" />
</object>";
		elseif ($type==13)
			$player = "<object id=\"flashplayer\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-446003540000\" height=\"455\" width=\"650\">
<param name=\"movie\" value=\"http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?version=AFrontend.5.5.4.1024&permalinkId=$url&player=videodetailsembedded&videoAutoPlay=0&id=anonymous\" />
<param name=\"allowFullScreen\" value=\"true\" />
<param name=\"allowScriptAccess\" value=\"always\" />
<param name=\"transparent\" value=\"#FFFFFF\" />
<embed name=\"flashplayer\" src=\"http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?version=AFrontend.5.5.4.1024&permalinkId=$url&player=videodetailsembedded&videoAutoPlay=0&id=anonymous\" transparent=\"wmode\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowScriptAccess=\"always\" height=\"455\" width=\"650\" />
</object>";
		elseif ($type==27)
			$player = "<b><font size=\"5\" color=\"#FFFFFF\"><a href=\"$url\" target=\"_blank\">Nh&#7845;n va&#768;o &#273;ây &#273;&#7875; t&#7843;i v&#7873; ma&#769;y</a></font></b><br>";
		elseif ($type==7)
			$player = "<b><font size=\"5\" color=\"#FFFFFF\"><a href=\"$url\" target=\"_blank\">Hãy nh&#7845;n va&#768;o &#273;ây &#273;&#7875; xem phim</a></font></b><br>";		
		elseif ($type==2)
			$player = "<embed type=\"application/x-shockwave-flash\" src=\"$url&hl=en&fs=true\" style=\"\" id=\"mpl\" name=\"mpl\" bgcolor=\"#FFF\" quality=\"high\" allowscriptaccess=\"always\" wmode=\"transparent\" allowfullscreen=\"true\" height=\"455\" width=\"650\">";
		elseif ($type==14 || $type==9 || $type==20)
		$player = "<embed type=\"application/x-shockwave-flash\" src=\"$url\" height=\"455\" width=\"650\" quality=\"high\" allowfullscreen=\"true\" allowscriptaccess=\"always\" >";		
		
  return $player;
}
?>